﻿using System;
using System.Collections.Generic;

namespace Nop.Core.Domain.Directory
{
    public class Holiday : BaseEntity
    {
        private ICollection<HolidayDate> _dates;
        private ICollection<StateProvince> _stateProvinces;

        public string Name { get; set; }
        public string Description { get; set; }
        public string CountryCode { get; set; }
        public int DisplayOrder { get; set; }

        public virtual ICollection<HolidayDate> Dates
        {
            get { return _dates ?? (_dates = new List<HolidayDate>()); }
            protected set { _dates = value; }
        }
        public virtual ICollection<StateProvince> StateProvinces
        {
            get { return _stateProvinces ?? (_stateProvinces = new List<StateProvince>()); }
            protected set { _stateProvinces = value; }
        } 
    }

    public class HolidayDate : BaseEntity
    {
        public virtual int HolidayId { get; set; }
        public virtual DateTime Date { get; set; }

        public virtual Holiday Holiday { get; set; }
    }
}
